package com.hsm4;

public class Dog extends Animal{
    //将shout函数向上抽取，进行优化
    public void shout(){
        System.out.println("汪汪~");
    }
    public void guard(){
        System.out.println("我可以看门");
    }
}
